const getSwitchVal = (item) => {
    switch (item) {
        case 'val1':
            return 'is val1'
        case 'val2':
            return 'is val2'
        case 'val3':
            return 'is val3'
        default:
            return 'is default'
    }
}

console.log(getSwitchVal('val1'));